settings object

This method will write a numeric value to the registry.

bool write_number(string value_name, double content)

Parameters:
value_name
The name of the value to write.
content
The data to write to the specified value.

Return value:
True on success, false on failure.

Remarks:
Please note: You may not store more than 50 values in the registry for a given product.

Example:
// Write a user's score to the registry.

void main()
{
settings game_data;
bool success=game_data.setup("Testtime Interactive", "Bonebreaker", false);
if(!success)
{
alert("Error", "Could not access the registry.");
exit();
}
success=game_data.write_number("userscore", 17408);
if(!success)
{
alert("Error", "Could not write userscore.");
exit();
}
}